package com.wanxi.test;

import com.wanxi.util.Tool;

public class PrintHelloWorld {
    public static void main(String[] args) {
        /**
         * 1.键盘录入次数
         * 2.循环遍历打印
         */
        int times = Tool.getNum("打印多少次HelloWorld");
        printTimes(times);
    }

    private static void printTimes(int times) {
        for (int i = 0; i < times; i++) {
            System.out.println("第" + (i + 1) + "次打印：HelloWorld");
        }
    }
}
